package com.potenza.track.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.potenza.track.mapper.DriverLocationMapper;
import com.potenza.track.domain.DriverLocation;
import com.potenza.track.service.IDriverLocationService;

/**
 * 车辆点Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-05-24
 */
@Service
public class DriverLocationServiceImpl implements IDriverLocationService 
{
    @Autowired
    private DriverLocationMapper driverLocationMapper;

    /**
     * 查询车辆点
     * 
     * @param id 车辆点主键
     * @return 车辆点
     */
    @Override
    public DriverLocation selectDriverLocationById(Long id)
    {
        return driverLocationMapper.selectDriverLocationById(id);
    }

    /**
     * 查询车辆点列表
     * 
     * @param driverLocation 车辆点
     * @return 车辆点
     */
    @Override
    public List<DriverLocation> selectDriverLocationList(DriverLocation driverLocation)
    {
        return driverLocationMapper.selectDriverLocationList(driverLocation);
    }

    /**
     * 新增车辆点
     * 
     * @param driverLocation 车辆点
     * @return 结果
     */
    @Override
    public int insertDriverLocation(DriverLocation driverLocation)
    {
        return driverLocationMapper.insertDriverLocation(driverLocation);
    }

    /**
     * 修改车辆点
     * 
     * @param driverLocation 车辆点
     * @return 结果
     */
    @Override
    public int updateDriverLocation(DriverLocation driverLocation)
    {
        return driverLocationMapper.updateDriverLocation(driverLocation);
    }

    /**
     * 批量删除车辆点
     * 
     * @param ids 需要删除的车辆点主键
     * @return 结果
     */
    @Override
    public int deleteDriverLocationByIds(Long[] ids)
    {
        return driverLocationMapper.deleteDriverLocationByIds(ids);
    }

    /**
     * 删除车辆点信息
     * 
     * @param id 车辆点主键
     * @return 结果
     */
    @Override
    public int deleteDriverLocationById(Long id)
    {
        return driverLocationMapper.deleteDriverLocationById(id);
    }

//    @Override
//    public List<DriverLocation> list() {
//        return driverLocationMapper.list();
//    }
}
